package com.example.validate.provider;

import javax.validation.Configuration;
import javax.validation.ValidatorFactory;
import javax.validation.spi.BootstrapState;
import javax.validation.spi.ConfigurationState;
import javax.validation.spi.ValidationProvider;

/**
 * Created by TJ on 2017/9/20.
 */
public class CommonValidate implements ValidationProvider {

    public Configuration createSpecializedConfiguration(BootstrapState state) {

        System.out.println(" 啊啊啊啊啊 ");

        System.out.println(state);
        System.out.println("createSpecializedConfiguration");

        return null;
    }

    public Configuration<?> createGenericConfiguration(BootstrapState state) {
        System.out.println(" 哈哈哈哈哈啊哈哈 ");
        System.out.println(state);
        System.out.println("createGenericConfiguration");
        return null;
    }

    public ValidatorFactory buildValidatorFactory(ConfigurationState configurationState) {
        System.out.println(" 说的发生地方 ");
        System.out.println(configurationState);
        System.out.println("buildValidatorFactory");
        return null;
    }
}
